//
//  HTTPHelper.h
//  News
//
//  Created by xalo on 16/2/25.
//  Copyright © 2016年 News. All rights reserved.
//

#import <Foundation/Foundation.h>

@class NewsModel;

@class PicListModel;

@class VideoModel;

@class DetialModel;

typedef  void(^Block)(id  _Nullable responseObject);
typedef void(^Block1) ();

typedef void (^Block3)();


@interface HTTPHelper : NSObject

@property (nonatomic,strong) NSMutableArray * _Nullable newsModelArray; // 新闻model数组

+(_Nonnull id)sharedManger;

#pragma mark - 新闻
// 加载分类数据
//- (void)downloadCategoryWithURL:(NSString * _Nullable)urlString withBlock:(Block1 _Nullable)block;
// 加载新闻model数据
- (void)downloadNewsModelWithChannel:(NSString *_Nullable)channel subCategoryArray:(NSMutableArray* _Nullable)subCategoryArray block:(Block1 _Nullable)block reblock:(Block3 _Nullable)block3;



#pragma mark - 视频
//加载视频Video数据
-(void)fetchVideo_videoDataWithchannel:(NSString * _Nullable)channel videoArray:(NSMutableArray * _Nullable)videoArray block:(Block1 _Nullable)block ;

-(void)fetchVideo_videoDataWithchannel:(NSString * _Nullable)channel videoArray:(NSMutableArray * _Nullable)videoArray block:(Block1 _Nullable)block reblock:(Block3 _Nullable)reblock successBlock:(Block)successBlock;


#pragma mark 上啦加载
-(void)pullUpRefreshDataWithChannel:(NSString * _Nullable)channel times:(NSInteger)times videoArray:(NSMutableArray * _Nullable)videoArray block:(Block1 _Nullable)block;



//上啦加载,加载错误执行block3;
-(void)pullUpRefreshDataWithChannel:(NSString * _Nullable)channel times:(NSInteger)times videoArray:(NSMutableArray * _Nullable)videoArray block:(Block1 _Nullable)block reblock:(Block3 _Nullable)reblock;







//解析数据
-(void)fetchPictureDataWithUrl:(NSString *_Nullable)url  picArray:(NSMutableArray *_Nullable)picArray  block:(Block3 _Nullable)block;
//下拉加载
-(void)getDropDownLoadDataWith:(NSString *_Nullable)url number:(NSInteger )number picArray:(NSMutableArray * _Nullable)picArray  block:(Block3 _Nullable)block reblock:(Block1 _Nullable)reblock;

//详情
-(void)entDetailsInterfaceWithNumber:(NSString *)number picArray:(NSMutableArray *)picArray  block:(Block3)block;


//-(void)fetchVideo_videoDataWithchannel:(NSString * _Nullable)channel videoArray:(NSMutableArray * _Nullable)videoArray block:(Block1 _Nullable)block reblock:(Block3 _Nullable)reblock;

//xia la
-(void)getDropUpLoadDataWith:(NSString * _Nullable)url number:(NSInteger)number picArray:(NSMutableArray * _Nullable)picArray  block:(Block3 _Nullable)block ;

-(void)getPictureCommentWith:(NSMutableArray *)Commentarray  number:(NSString *)number  time:(NSInteger)time  block:(Block1)block;



@end
